package lntu.chap03;

public class Shape {
    public double getArea(double x) {
        double area;
        area =x*x;
        return area;
    }
    public double getArea(double x,double y) {
        double area;
        area = x * y;
        return area;
    }
    public double getPerimeter(double x){
        double length;
        length = 4*x;
        return length;
    }
    public double getPerimeter(double x,double y){
        double length;
        length = 2*(x+y);
        return length;
    }
}
